<template>
  <router-view v-slot="{ Component, route }">
    <keep-alive>
      <component :is="Component" v-if="route.meta && route.meta.keepAlive" />
    </keep-alive>
    <template v-if="!route.meta || !route.meta.keepAlive">
      <component :is="Component" />
    </template>
  </router-view>
</template>

<script setup lang="ts"></script>

<style></style>
